package com.lzy.pattern.factory.simple_factory;

/**
 * @ClassName: CoffeeStore
 * @Description: TODO
 * @Author: LiuZy
 * @Date: 2022/4/11 20:16
 * @Version: 1.0
 */
public class CoffeeStore {
    public Coffee order(String type){

        Coffee coffee = CoffeeFactory.createCoffee(type);

        coffee.addMilk();
        coffee.addSugar();

        return coffee;
    }
}